using System;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace ClownFish
{
	public class MyCDATA : IXmlSerializable
	{
		private string string_0;

		public string Value
		{
			get
			{
				return this.string_0;
			}
		}

		public MyCDATA()
		{
		}

		public MyCDATA(string value)
		{
			this.string_0 = value;
		}

		XmlSchema IXmlSerializable.GetSchema()
		{
			return null;
		}

		void IXmlSerializable.ReadXml(XmlReader reader)
		{
			this.string_0 = reader.ReadElementContentAsString();
		}

		void IXmlSerializable.WriteXml(XmlWriter writer)
		{
			writer.WriteCData(this.string_0);
		}

		public override string ToString()
		{
			return this.string_0;
		}

		public static implicit operator MyCDATA(string text)
		{
			return new MyCDATA(text);
		}

		public static implicit operator string(MyCDATA text)
		{
			return text.ToString();
		}
	}
}
